import request from '@/utils/request'

export function login(data) {
	return request({
		url: '/home/login',
		method: 'post',
		data
	})
}

export function logout() {
	return request({
		url: '/home/logout',
		method: 'post'
	})
}

export function getInfo() {
    return request({
        url: '/member/profile',
        method: 'post'
    })
}

export function getUserList(data) {
    return request({
        url: '/member/get-list',
        method: 'post',
        data
    })
}

export function deleteUser(data) {
    return request({
        url: '/member/update-status',
        method: 'post',
        data
    })
}

export function getUserDetail(data) {
    return request({
        url: '/member/get-detail',
        method: 'post',
        data
    })
}

export function newUser(data) {
    return request({
        url: '/member/save-member',
        method: 'post',
        data
    })
}

export function updateUser(data) {
    return request({
        url: '/member/save-member',
        method: 'post',
        data
    })
}

export function updatePasswd(data) {
	return request({
		url: '/member/update-passwd',
		method: 'post',
		data
	})
}
